import Types from '../../action/types'
const defaultStatus = {
    theme:'red'
}
export default function onAction(state=defaultStatus,action){
  
    switch(action.type) {
        case Types.THEME_CHANGE:
            return{
                ...state,
                theme:action.theme
            }
        default:
            return {
                ...state
            }    

    }
}